package cb.wzby;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author wzby
 * @Date: 2022/7/30 14:21
 */
public class Set5 {
    public static void main(String[] args) {
        Set<Integer> s1 = new HashSet<>(List.of(1,2,3));
        Set<Integer> s2 = new HashSet<>(List.of(1,2,3));
        Set<Integer> s3 = new HashSet<>(List.of(2,3,6,8,9));
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println("==".repeat(20));
        s3.removeAll(s1);
        s1.removeAll(s3);
        System.out.println(s1);
        System.out.println(s3);
    }
}
